package com.zxj.system.domain.exam.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.zxj.system.domain.question.vo.QuestionVO;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 竞赛详情 VO
 *
 * @author zxj2022
 * @date 2024/12/29
 */
@Getter
@Setter
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "ExamDetailVO", description = "竞赛详情 VO")
public class ExamDetailVO {

    /** 标题 */
    @Schema(name = "title", description = "竞赛标题")
    private String title;

    /** 开始时间 */
    @Schema(name = "startTime", description = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;

    /** 结束时间 */
    @Schema(name = "endTime", description = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;

    /** 竞赛题目列表 */
    @Schema(name = "examQuestionList", description = "竞赛题目列表")
    private List<QuestionVO> examQuestionList;
}
